package com.java45.bdqn.oop3;

public class Master {
     private String name="";
     private int money=0;
     public Master(String name,int money){
    	 this.name=name;
    	 this.money=money;
    	 
     }
     public void setName(String name) {
		this.name = name;
	}
     public String getName() {
		return name;
	}
     public void setMoney(int money) {
		this.money = money;
	}
     public int getMoney() {
		return money;
	}
     public void feed(Dog d){
    	d.eat(); 
     }
     public void feed(Penguin p){
    	 
    	 p.eat();
     }
}
